package com.loop.staticDemo;

import java.net.Inet4Address;

public class Student {
    private String name;
    private Integer age;
    private static String schoolName = "一中";

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public static void main(String[] args) {
        Student s1 = new Student();
        System.out.println(s1.schoolName);
        Student.schoolName="第一中学";
        System.out.println(s1.schoolName);

        System.out.println(Student.schoolName);
        System.out.println(Student.schoolName = "第二中学");

    }
}
